Eclipse Platform
Pre-release 3.0

org.eclipse.jface.text.contentassist
Interface IContentAssistProcessorExtension


public interface IContentAssistProcessorExtension

Extends IContentAssit with the concept of a content assist subject which provides the context for the content assistant.

XXX: This is work in progress and can change anytime until API for 3.0 is frozen.

Since:
3.0
See Also:
IContentAssistSubject

Method Summary
 ICompletionProposal[] computeCompletionProposals(IContentAssistSubject contentAssistSubject, int documentOffset)
          Returns a list of completion proposals based on the specified location within the document that corresponds to the current cursor position within the text viewer.
 IContextInformation[] computeContextInformation(IContentAssistSubject contentAssistSubject, int documentOffset)
          Returns information about possible contexts based on the specified location within the document that corresponds to the current cursor position within the content assist subject.
 

Method Detail

computeCompletionProposals

public ICompletionProposal[] computeCompletionProposals(IContentAssistSubject contentAssistSubject,
                                                        int documentOffset)
Returns a list of completion proposals based on the specified location within the document that corresponds to the current cursor position within the text viewer.

Parameters:
contentAssistSubject - the content assist subject whose document is used to compute the proposals
Returns:
an array of completion proposals or null if no proposals are possible

computeContextInformation

public IContextInformation[] computeContextInformation(IContentAssistSubject contentAssistSubject,
                                                       int documentOffset)
Returns information about possible contexts based on the specified location within the document that corresponds to the current cursor position within the content assist subject.

Parameters:
contentAssistSubject - the content assist subject whose document is used to compute the possible contexts
Returns:
an array of context information objects or null if no context could be found

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.